package com.rede.didiok.user.modulelist.rank.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rede.didiok.common.utils.PageUtils;
import com.rede.didiok.common.utils.Query;
import com.rede.didiok.user.modulelist.rank.dao.VoteRecordDao;
import com.rede.didiok.user.modulelist.rank.entity.VoteRecordEntity;
import com.rede.didiok.user.modulelist.rank.service.VoteRecordService;


@Service("voteRecordService")
public class VoteRecordServiceImpl extends ServiceImpl<VoteRecordDao, VoteRecordEntity> implements VoteRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VoteRecordEntity> page = this.page(
                new Query<VoteRecordEntity>().getPage(params),
                new QueryWrapper<VoteRecordEntity>()
        );

        return new PageUtils(page);
    }

}